package com.ease.framework.gef4p.figures.impl.edge {
   import com.ease.framework.gef4p.figures.edge.IEdgeFigure;

   public class EdgeArrawManager extends AbstractEdgeListener {
      private var targetArrow:EdgeArraw;

      public function EdgeArrawManager() {
      }

      override public function beforeCreateChildren(edgeFigure:IEdgeFigure):void {
         targetArrow = new EdgeArraw();
         edgeFigure.addChild(targetArrow);
      }

      override public function afterDrawing(edgeFigure:IEdgeFigure):void {
         targetArrow.invalidateDisplayList();
      }

      override public function clean(edgeFigure:IEdgeFigure):void {
         targetArrow.graphics.clear();
         targetArrow.visible = false;
      }
   }
}